//============================================================================
// Name        : ms012.cpp
// Author      : Tadas
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <time.h>

#include "lib.h"

using namespace std;

int main() {

	srand(time(NULL));
	seed = time(NULL);
	float temp;

	int n = 1e6;
	
	int size = 20;
	
	int scount[size];
	int sdcount[size];

	for(int i = 0; i < size; i++){
		scount[i] = sdcount[i] = 0;
	}
	
	for (int k = 0; k < 3; k++) {
		for (int i = 0; i < n; i++) {
			temp = randGe();
			temp *= size - 1;
			scount[int(temp)]++;
			
			temp = rand() / double(RAND_MAX);
			temp *= size - 1;
			sdcount[int(temp)]++;
		}
		
		seed += time(NULL);
		srand(time(NULL));
	}
	
	for(int i = 0; i < size; i++){
		cout << "i: " << i + 1 << " Sra: " << scount[i] << " Std: " << sdcount[i] << endl;
	}
	
	return 0;

}
